<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div#outer{
            width: 400px;
            height: 150px;
            border: 1px solid red;
            margin: 0 auto;
            overflow: hidden;
        }
        div.move{
            width: 2000px;
            height: 150px;
            background-color: red;
            animation-name: move;
            animation-duration: 10s;
            animation-timing-function: steps(5);
            animation-iteration-count: infinite;
        }
        div.move div{
            width: 400px;
            height: 150px;
            float: left;
            color: #fff;
            font-size: 30px;
        }
        @keyframes move {
            from{
                margin-left: 0px;
            }
            to{
                margin-left: -2000px;
                
            }
        }
    </style>
</head>
<body>
    <div id="outer">
        <div class="move">
            <div style="background:red;">div1<img src="./梦幻西游动画图/bj.png" alt=""></div>
            <div style="background: rebeccapurple;">div2<img src="./梦幻西游动画图/ss.png" alt=""></div>
            <div style="background: salmon;">div3<img src="./梦幻西游动画图/ts.png" alt=""></div>
            <div style="background: pink;">div4<img src="./梦幻西游动画图/wk.png" alt=""></div>
            <div style="background: green;">div5<img src="./梦幻西游动画图/background.jpg" alt=""></div>
        </div>
    </div>
</body>
</html>